const express = require('express');
const router = express.Router();
const userController = require('../controller/user.js');
const bookController = require('../controller/book.js');

//检查登录
router.use(userController.checkLogin);
//登录
router.post('/login', userController.login);
//获取书籍列表
router.post('/booklist', bookController.booklist);
//获取书籍详情
router.post('/bookdetail', bookController.bookdetail);



module.exports = router;
